import request from '@/utils/request'

export function getDoctor(query) {
    return request({
        url: '/doctor/doctor/list',
        method: 'get',
        data: query
    })
}

export function getDoctorById(id) {
    return request({
        url: '/doctor/doctor/findDoctorById/'+id,
        method: 'post'
    })
}

export function updDoctor(query) {
    return request({
        url: '/doctor/doctor/uploadById',
        method: 'post',
        data: query
    })
}

// 根据科室找对应的医生
export function findByDepartmentsId(departmentsId) {
    return request({
        url: '/doctor/doctor/findById/'+departmentsId,
        method: 'GET'
    })
}


// 批量查询
export function batchSelectDoctor(departmentId) {
	return request({
		method: 'GET',
		url: `/doctor/doctor/batchSelectDoctor/${departmentId}`,
	})
}

export function getQuestion(evaluationId) {
    return request({
        url: '/doctor/question/list/'+evaluationId,
        method: 'post'
    })
}

export function selectEvaluation(query) {
    return request({
        url: '/doctor/question/findEvaluaList',
        method: 'post',
        data: query
    })
}
export function getUserQuestionList() {
    return request({
        url: '/doctor/question/findUserQuestionList',
        method: 'post'
    })
}
export function getCommentList(dockerId) {
    return request({
        url: '/doctor/comment/list/'+dockerId,
        method: 'post'
    })
}

// 送心意页面
export function getIntentionList(dockerId) {
    return request({
        url: '/doctor/intention/selectIntention/'+dockerId,
        method: 'post'
    })
}

export function insertIntention(query) {
    return request({
        url: '/doctor/intention/addIntention',
        method: 'post',
        data: query
    })
}




